import { ApiProperty } from '@nestjs/swagger'
import { modelOptions, prop, Ref } from '@typegoose/typegoose'
import { Episode } from './episode.model'

@modelOptions({
    schemaOptions:{
        timestamps: true
    }
})
export class Course {

    @ApiProperty({description: '课程名', example: '语文'})
    @prop()
    name: string
    
    @ApiProperty({description: '封面图', example: 'https://tse2-mm.cn.bing.net/th/id/OIP.ODBbzHMCVhRCHbrp_CpaowHaKl?w=198&h=282&c=7&o=5&pid=1.7'})
    @prop()
    cover: string

}